// 决算送审搜索表单
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'prjName',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目名称'
        },
        {
            type: 'input',
            prop: 'prjCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '工程项目编码'
        },
        {
            type: 'datePicker',
            prop: 'prjYear',
            value: new Date().getFullYear().toString(),
            format: 'yyyy',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy',
            clearable: true,
            dateType: 'year',
            label: '年份'
          },
          {
            type: 'select',
            prop: 'auditState',
            value: '',
            width: '',
            colSpan: 6,
            label: '决算审计状态',
            dicType: 'FIN_AUDIT_STATE',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'provinceCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '所属省份',
            disabled: false,
            dicType: 'PROVINCE_DIC',
            dicProp: {
                label: 'orgName',
                value: 'orgId'
            }
        },
        {
            type: 'select',
            prop: 'cityCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: false,
            label: '所属地市',
            dicType: 'CITY_DIC',
            dicProp: {
                label: 'orgName',
                value: 'orgId'
            }
        },
        {
            type: 'select',
            prop: 'countyCode',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: false,
            label: '所属管理区域',
            dicType: 'COUNTY_DIC',
            dicProp: {
                label: 'orgName',
                value: 'orgId'
            }
        },
        {
            type: 'select',
            prop: 'isRailway',
            value: '',
            width: '',
            colSpan: 6,
            label: '投资分类',
            dicType: 'IS_RAILWAY',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'isPl',
            value: '',
            width: '',
            colSpan: 6,
            label: '是否批量立项',
            dicType: 'COF_YESORNO', // 跟 是否非标项目 用的同一字典
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'plType',
            value: '',
            width: '',
            colSpan: 6,
            label: '批量立项类型',
            dicType: 'PL_TYPE',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'mulSelect',
            prop: 'isPush',
            value: '01,02',
            width: '',
            colSpan: 6,
            label: '送审状态',
            dicType: 'IS_PUSH',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'prjType',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '项目类型',
            dicType: 'PROJ_TYPE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'datePicker',
            prop: 'accCompleteTime',
            value: '',
            format: 'yyyy-MM-dd',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy-MM-dd',
            clearable: true,
            dateType: 'daterange',
            label: '内部验收完成时间'
        },
        {
            type: 'datePicker',
            prop: 'payTime',
            value: '',
            format: 'yyyy-MM-dd',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy-MM-dd',
            clearable: true,
            dateType: 'daterange',
            label: '实际交付时间'
        },
        {
            type: 'datePicker',
            prop: 'backTime',
            value: '',
            format: 'yyyy-MM-dd',
            width: '',
            colSpan: 6,
            valueFormat: 'yyyy-MM-dd',
            clearable: true,
            dateType: 'daterange',
            label: '退回时间'
        },
        {
            type: 'select',
            prop: 'isNonstandard',
            value: '',
            width: '',
            colSpan: 6,
            label: '是否非标项目',
            dicType: 'COF_YESORNO',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'select',
            prop: 'ifModel',
            value: '',
            width: '',
            colSpan: 6,
            label: '是否模块化',
            dicType: 'COF_YESORNO',
            clearable: true,
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        {
            type: 'input',
            prop: 'fixedAmountStart',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '暂估转固金额'
        },
        {
            type: 'input',
            prop: 'fixedAmountEnd',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '至'
        },
    ]
}
// 决算送审搜索表头
export const checkColumns = [
    { label: '所属省份', width: '', prop: 'provinceName' },
    { label: '所属地市', width: '', prop: 'cityName' },
    { label: '所属管理区域', width: '', prop: 'countyName' },
    { label: '工程项目编码', width: '', prop: 'prjCode' },
    { label: '项目名称', width: '', prop: 'prjName' },
    { label: '单位编号', width: '', prop: 'orgCode' },
    { label: '立项批复金额(不含税)', width: '', prop: 'totalCost' },
    { label: '设计批复金额(不含税)', width: '', prop: 'desInvest' },
    { label: '送审金额(不含税)', width: '', prop: 'trailFee' },
    { label: '暂估转固金额(不含税)', width: '', prop: 'fixedAmount' },
    { label: '竣工决算时间', width: '', prop: 'returnCause' },
    { label: '送审状态', width: '', prop: 'isPush', dicType: 'IS_PUSH', dicProp: { label: 'dictName', value: 'dictId' } },
    { label: '决算审计状态', width: '', prop: 'auditState', dicType: 'FIN_AUDIT_STATE', dicProp: { label: 'dictName', value: 'dictId' } },
    { label: '退回类型', width: '', prop: 'returnType' },
    { label: '退回原因', width: '', prop: 'returnCause' },
    { label: '退回时间', width: '', prop: 'returnData' },
]

export const checkColumnsDetails = [
    { label: '项目名称', width: '', prop: 'prjName' },
    { label: '决算送审时间', width: '', prop: 'pushDate' },
    { label: '送审状态', width: '', prop: 'isPush', dicType: 'IS_PUSH', dicProp: { label: 'dictName', value: 'dictId' } },
    { label: '决算审计状态', width: '', prop: 'auditState', dicType: 'FIN_AUDIT_STATE', dicProp: { label: 'dictName', value: 'dictId' } },
    { label: '退回原因', width: '', prop: 'returnCause' },
    { label: '退回时间', width: '', prop: 'returnData' },
    { label: '送审金额', width: '', prop: 'trailFee' },
]


export const tabsOption = [
    {
        label: '工程项目竣工决算总表',
        name: 'delivery'
    },
    {
        label: '交付使用资产明细表',
        name: 'auxiliary'
    },
    {
        label: '辅助明细账',
        name: 'paymentPrice'
    },
    {
        label: '工程付款信息统计表',
        name: 'paymentInfo'
    },
    {
        label: '费用清单',
        name: 'priceCost'
    },
    {
        label: '设备清单',
        name: 'deviceCost'

    },
    {
        label: '成本单查询结果',
        name: 'costSheetResult'
    }
]

// 工程项目竣工决算总表
const deliveryColumns = [
    { label: '工程项目支出事项', width: '', prop: 'type' },
    { label: '工程项目竣工决算额', width: '', prop: 'suma' },
]
// 交付使用资产明细表
const auxiliaryColumns = [
    { label: '资产类别', width: '', prop: 'type' },
    { label: '资产名称', width: '', prop: 'name' },
    { label: '工程项目编码', width: '', prop: 'prjCode' },
    { label: '站址编码', width: '', prop: 'siteCode' },
    { label: '站址名称', width: '', prop: 'siteName' },
    { label: '资产目录编号', width: '', prop: 'code' },
    { label: '供应商', width: '', prop: 'supplier' },
    { label: '规格型号结构', width: '', prop: 'specifications' },
    { label: '生产厂家', width: '', prop: 'manufacturer' },
    { label: '数量', width: '', prop: 'num' },
    { label: '计量单位', width: '', prop: 'units' },
    { label: '启用时间', width: '', prop: 'stDate' },
    { label: '责任部门', width: '', prop: 'department' },
    { label: '维护经理', width: '', prop: 'manager' },
    { label: '代维人员', width: '', prop: 'dwUser' },
    { label: '设备投资金额', width: '', prop: 'equipmentAmt' },
    { label: '建筑安装投资金额', width: '', prop: 'jaAmt' },
    { label: '待摊费用金额', width: '', prop: 'prepaidAmt' },
    { label: '其它投资金额', width: '', prop: 'otherAmt' },
    { label: '资产价值', width: '', prop: 'assetAmt' },
]
// 辅助明细账
const paymentPriceColumns = [
    { label: '业务日期', width: '', prop: 'ywrq' },
    { label: '凭证编号', width: '', prop: 'voucher' },
    { label: '科目编号', width: '', prop: 'subjectCode' },
    { label: '科目名称', width: '', prop: 'subjectName' },
    { label: '产品编号', width: '', prop: 'productCode' },
    { label: '产品名称', width: '', prop: 'productName' },
    { label: '计量单位', width: '', prop: 'units' },
    { label: '摘要', width: '', prop: 'abstract' },
    { label: '借方', width: '', prop: 'debit' },
    { label: '贷方', width: '', prop: 'credit' },
    { label: '方向', width: '', prop: 'direction' },
    { label: '余额', width: '', prop: 'balance' }
]
// 工程付款信息统计表
const paymentInfoColumns = [
    { label: '核算单位', width: '', prop: 'orgName' },
    { label: '科目编号', width: '', prop: 'subjectCode' },
    { label: '科目名称', width: '', prop: 'subjectName' },
    { label: '往来代为编号', width: '', prop: 'wldwCode' },
    { label: '合同编号', width: '', prop: 'contractCode' },
    { label: '合同名称', width: '', prop: 'contractName' },
    { label: '合同金额', width: '', prop: 'contractAmt' },
    { label: '订单编号', width: '', prop: 'orderCode' },
    { label: '站址编码', width: '', prop: 'siteCode' },
    { label: '站址名称', width: '', prop: 'siteName' },
    { label: '项目编号', width: '', prop: 'prjCode' },
    { label: '项目名称', width: '', prop: 'prjName' },
    { label: '工程会计清单导入金额不含税', width: '', prop: 'importNotaxAmt' },
    { label: '费用项目', width: '', prop: 'feeName' },
    { label: '报账单号', width: '', prop: 'bzCode' },
    { label: '发票日期', width: '', prop: 'invoiceDate' },
    { label: '发票代码', width: '', prop: 'invoiceCode' },
    { label: '发票含税金额', width: '', prop: 'invoiceAmt' },
    { label: '发票不含税金额', width: '', prop: 'invoiceNotaxAmt' },
    { label: '付款金额', width: '', prop: 'payAmt' },
    { label: '付款年月', width: '', prop: 'payDateTmp' },
    { label: '未付款金额', width: '', prop: 'nopayAmt' },
    { label: '账龄天数', width: '', prop: 'day' },
]
// 费用清单
const priceCostColumns = [
    { label: '业务日期', width: '120', prop: 'businessDate' },
    { label: '订单编号', width: '100', prop: 'orderCode' },
    { label: '供应商', width: '100', prop: 'supplier' },
    { label: '物料编号', width: '100', prop: 'materielCode' },
    { label: '不含增值税价格', width: '100', prop: 'notaxAmt' },
    { label: '税金', width: '100', prop: 'taxAmt' },
    { label: '含税总价', width: '120', prop: 'sumamt' },
    { label: '成本确认进度', width: '100', prop: 'schedule' },
    { label: '当期成本费用确认金额', width: '100', prop: 'costAmt' },
    { label: '审计调整(不含税值)', width: '100', prop: 'auditAmt' },
    { label: '核算单位编号', width: '100', prop: 'orgCode' },
    { label: '核算单位名称', width: '120', prop: 'orgName' },
    { label: '项目编号', width: '100', prop: 'prjCode' },
    { label: '项目名称', width: '100', prop: 'prjName' },
    { label: '站址编码', width: '100', prop: 'siteCode' },
    { label: '站址名称', width: '100', prop: 'siteName' },
    { label: '科目名称', width: '100', prop: 'subjectName' }
]
// 设备清单
const deviceCostColumns = [
    { label: '规格型号', width: '120', prop: 'specifications' },
    { label: '产品名称', width: '100', prop: 'productName' },
    { label: '计量单位', width: '100', prop: 'units' },
    { label: '数量', width: '100', prop: 'num' },
    { label: '审计数量调整', width: '100', prop: 'auditNum' },
    { label: '不含税物资总价', width: '100', prop: 'notaxAmt' },
    { label: '审计金额调整(不含税值)', width: '120', prop: 'auditNottaxAmt' },
    { label: '税金', width: '100', prop: 'taxAmt' },
    { label: '含税总价', width: '100', prop: 'amt' },
    { label: '核算单位编号', width: '100', prop: 'orgCode' },
    { label: '核算单位名称', width: '100', prop: 'orgName' },
    { label: '项目编号', width: '100', prop: 'prjCode' },
    { label: '项目名称', width: '100', prop: 'prjName' },
    { label: '站址编码', width: '100', prop: 'siteCode' },
    { label: '站址名称', width: '100', prop: 'siteName' },
    { label: '科目名称', width: '100', prop: 'subjectName' }
]
// 成本单查询结果
const costSheetResultColumns = [
    { label: '导入编号', width: '120', prop: 'importCode' },
    { label: '单据编号', width: '100', prop: 'code' },
    { label: '供应商', width: '100', prop: 'supplier' },
    { label: '物料编号', width: '100', prop: 'materielCode' },
    { label: '生产厂家', width: '100', prop: 'manufacturer' },
    { label: '规格编号', width: '100', prop: 'specifications' },
    { label: '产品名称', width: '120', prop: 'productName' },
    { label: '计量单位', width: '100', prop: 'units' },
    { label: '数量', width: '100', prop: 'nums' },
    { label: '不含增值税物资单价', width: '100', prop: 'notaxAmt' },
    { label: '不含税物资总价', width: '100', prop: 'notaxSumamt' },
    { label: '含税总价', width: '100', prop: 'sumamt' },
    { label: '成本确认度(%)', width: '100', prop: 'schedule' },
    { label: '税金', width: '100', prop: 'taxAmt' },
    { label: '当期成本确认金额', width: '100', prop: 'costAmt' },
    { label: '工程项目编号', width: '100', prop: 'prjCode' },
    { label: '工程项目名称', width: '100', prop: 'prjName' },
    { label: '站址编码', width: '100', prop: 'siteCode' },
    { label: '站址名称', width: '100', prop: 'siteName' },
    { label: '核算组织编号', width: '100', prop: 'orgCode' },
    { label: '核算组织', width: '100', prop: 'orgName' },
    { label: '单据类别', width: '100', prop: 'type' },
    { label: '制单人', width: '100', prop: 'careteUser' },
    { label: '凭证内码', width: '100', prop: 'voucher' },
    { label: '是否转资', width: '100', prop: 'istransfer' },
    { label: '时间戳', width: '100', prop: 'timeStamp' },
    { label: '科目编号', width: '100', prop: 'subjectCode' },
    { label: '科目名称', width: '100', prop: 'subjectName' },
]
export const tabsColumnsOption = {
    delivery: deliveryColumns,
    auxiliary: auxiliaryColumns,
    paymentPrice: paymentPriceColumns,
    paymentInfo: paymentInfoColumns,
    priceCost: priceCostColumns,
    deviceCost: deviceCostColumns,
    costSheetResult: costSheetResultColumns
}


// 项目成本信息
export const costInfoFormOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'input',
            prop: 'jaAmt',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '建安投资'
        },
        {
            type: 'input',
            prop: 'equipmentAmt',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '设备投资'
        },
        {
            type: 'input',
            prop: 'prepaidAmt',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '待摊投资'
        },
        {
            type: 'input',
            prop: 'otherAmt',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '其它投资'
        },
        {
            type: 'input',
            prop: 'zgzgAmt',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '暂估转固金额'
        },
        {
            type: 'datePicker',
            prop: 'completedDate',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '竣工决算时间'
        }
    ]
}

// 决算审核信息
export const finalAccountAuditFormOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        {
            type: 'select',
            prop: 'auditState',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '决算审计状态',
            dicType: 'FIN_AUDIT_STATE',
            dicProp: { label: 'dictName', value: 'dictId' }
        },
        {
            type: 'select',
            prop: 'isPush',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '送审状态',
            dicType: 'IS_PUSH',
            dicProp: { label: 'dictName', value: 'dictId' }
        },
        {
            type: 'input',
            prop: 'returnType',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '退回类型'
        },
        {
            type: 'datePicker',
            prop: 'returnData',
            dateType: 'date',
            value: '',
            width: '',
            colSpan: 6,
            label: '退回时间',
            clearable: true,
            disabled: true,
            format: 'yyyy-MM-dd',
            valueFormat: 'yyyy-MM-dd'
        },
        {
            type: 'input',
            prop: 'returnCause',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            disabled: true,
            label: '退回意见'
        },
    ]
}
